package com.xjtu.se.homework.client.result.dao;


import org.apache.ibatis.annotations.Delete;
import org.apache.ibatis.annotations.Mapper;
import org.apache.ibatis.annotations.Select;
import org.apache.ibatis.annotations.Update;
import org.springframework.stereotype.Repository;

@Mapper
@Repository
public interface ClientResultDao {

    @Update("update history set is_marked = #{is_marked} where search_id = #{search_id}")
    void updateMistake(String search_id,int is_marked);

    @Select("select is_marked from history where search_id = #{search_id}")
    int getMistake(String search_id);
}
